export default {
  height:'auto',
  calcHeight: 30,
  lazy: true,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  tree: true,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "分类主键id",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "分类名称",
      prop: "name",
      type: "input",
      search: true,
      rules: [{
        required: true,
        message: "请输入分类名称",
        trigger: "blur"
      }],
    },
    {
      label: "上级分类",
      prop: "parentId",
      type: "tree",
      dicData: [],
      addDisabled: false,
      props: {
        label: 'title',
      },
      hide: true,
    },
    {
      label: "排序值",
      prop: "sort",
      type: "input",
      rules: [{
        required: true,
        message: "请输入排序值",
        trigger: "blur"
      }],
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicUrl: "/blade-system/dict/dictionary?code=status",
      dataType: "number",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      search: true,
      rules: [{
        required: true,
        message: "请选择状态",
        trigger: "blur"
      }],
    },
    {
      label: "分类图片",
      prop: "image",
      type: "upload",
      dataType: 'string',
      listType: 'picture-img',
      propsHttp: {
        res: 'data',
        name:'name',
        url:'link',
      },
      action: 'blade-resource/oss/endpoint/put-file'
    },
  ]
}
